Data processing method, and terminal device, and network device

ABSTRACT

Provided are a data processing method, a terminal device and a network device. The method comprises: a terminal device receiving first indication information, used for code block segmentation, sent by a network device; the terminal device performing, according to the first indication information, code block segmentation on the data, so as to obtain at least one code block, wherein the data is data received by the terminal device from the network device, or the data is data to be sent by the terminal device to the network device; and the terminal device encoding or decoding the at least one code block. The embodiments of the present invention improve the flexibility of an encoding/decoding process.

CROSS REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. application Ser. No.16/474,380 filed on Jun. 27, 2019, which is a national phase under 35U.S.C. § 371 of PCT International Application No. PCT/CN2016/106917filed on Nov. 23, 2016. The contents of these applications are herebyincorporated by reference in their entirety.

TECHNICAL FIELD

Embodiments of the present disclosure relate to the communicationsfield, and more specifically, to a data processing method, a terminaldevice, and a network device.

RELATED ART

In a Long Term Evolution (Long Term Evolution, LTE) system, data isgenerally encoded based on a turbo code. In a turbo code-based encodingprocess, limited by a structure of an encoder, a maximum quantity ofbits of each code block is 6144. When a quantity of bits ofto-be-encoded data is greater than 6144, code block segmentation needsto be performed on the to-be-encoded data, to obtain ┌L/6144┐ codeblocks, where L is the quantity of bits of the to-be-encoded data, andthe to-be-encoded data generally includes 24-bit cyclic redundancy check(Cyclic Redundancy Check, CRC) information.

Future communications systems have higher requirements on datademodulation and feedback. Using a 5G system (or referred to as a 5G NR(new radio) system) as an example, the system supports ultra-reliableand low latency communications (Ultra-Reliable and Low LatencyCommunications, URLLC), and the URLLC generally requires a receive endto implement rapid data demodulation and feedback. In an extreme case,the URLLC requires that data transmitted within a time unit (a time unitmay be, for example, a subframe) needs to be fed back within the timeunit, that is, the receive end needs to send ACK/NACK information of thedata that is transmitted in the same time unit in the time unit.

To support the higher requirements of the future communications systemson data demodulation and feedback, terminal device manufactures improveencoding and decoding performance inside the terminal device by usingvarious measures. For example, the terminal device manufactures setparallel encoders (or parallel decoders) inside the terminal device, toperform parallel processing on to-be-encoded (or to-be-decoded) data,thereby reducing an encoding (decoding) delay.

A single code block segmentation manner is used in the existing LTEsystem, and by means of the code block segmentation manner, the encodingand decoding performance of the terminal device cannot be fully played,reducing flexibility of encoding and decoding processes.

SUMMARY

Embodiments of the present disclosure provide a data processing method,a terminal device, and a network device, to improve flexibility ofencoding and decoding processes.

According to a first aspect, a data processing method is provided. Themethod includes: receiving, by a terminal device, first indicationinformation used for performing code block segmentation from a networkdevice; performing, by the terminal device, code block segmentation ondata based on the first indication information, to obtain at least onecode block, where the data is received by the terminal device from thenetwork device, or the data is prepared by the terminal device so as tosend to the network device; and encoding or decoding, by the terminaldevice, the at least one code block.

With reference to the first aspect, in some implementations of the firstaspect, the first indication information is used to instruct theterminal device to divide the data into a target quantity of code blocksin at least one preset quantity of code blocks.

With reference to the first aspect, in some implementations of the firstaspect, the performing, by the terminal device, code block segmentationon data based on the first indication information includes: determining,by the terminal device, a value of a field used to carry the firstindication information; selecting, by the terminal device, a quantity ofcode blocks that corresponds to the value of the field from the presetquantities of code blocks as the target quantity of code blocks; andperforming, by the terminal device, code block segmentation on the databased on the target quantity of code blocks.

With reference to the first aspect, in some implementations of the firstaspect, the first indication information is used to instruct theterminal device to perform code block segmentation on the data by usinga target code block segmentation manner in at least one preset codeblock segmentation manner.

With reference to the first aspect, in some implementations of the firstaspect, the performing, by the terminal device, code block segmentationon data based on the first indication information includes: determining,by the terminal device, the value of the field used to carry the firstindication information; selecting, by the terminal device, a code blocksegmentation manner corresponding to the value of the field from thepreset code block segmentation manners as the target code blocksegmentation manner; and performing, by the terminal device, code blocksegmentation on the data based on the target code block segmentationmanner.

With reference to the first aspect, in some implementations of the firstaspect, the field used to carry the first indication informationincludes a first value set and a second value set, and when the value ofthe field belongs to the first value set, the first indicationinformation is used to instruct the terminal device to divide the datainto the target quantity of code blocks in the preset quantities of codeblocks, or when the value of the field belongs to the second value set,the first indication information is used to instruct the terminal deviceto perform code block segmentation on the data by using the target codeblock segmentation manner in the preset code block segmentation manners.

With reference to the first aspect, in some implementations of the firstaspect, the first indication information is used to indicate a value ofa parameter of the target code block segmentation manner used by theterminal device when the terminal device performs code blocksegmentation on the data.

With reference to the first aspect, in some implementations of the firstaspect, the performing, by the terminal device, code block segmentationon data based on the first indication information includes: determining,by the terminal device, the value of the field used to carry the firstindication information; selecting, by the terminal device, a valuecorresponding to the value of the field from a plurality of values ofthe parameter of the target code block segmentation manner as the valueof the parameter of the target code block segmentation manner; andperforming, by the terminal device, code block segmentation on the databy using the target code block segmentation manner based on the value ofthe parameter of the target code block segmentation manner.

With reference to the first aspect, in some implementations of the firstaspect, the first indication information instructs the terminal deviceto perform code block segmentation on the data by using the target codeblock segmentation manner in the preset code block segmentation manners,and the first indication information indicates the value of theparameter of the target code block segmentation manner.

With reference to the first aspect, in some implementations of the firstaspect, the performing, by the terminal device, code block segmentationon data based on the first indication information includes: determining,by the terminal device, the value of the field used to carry the firstindication information; selecting, by the terminal device, a code blocksegmentation manner corresponding to the value of the field from thepreset code block segmentation manners as the target code blocksegmentation manner; selecting, by the terminal device, a valuecorresponding to the value of the field from the plurality of values ofthe parameter of the target code block segmentation manner as the valueof the parameter of the target code block segmentation manner; andperforming, by the terminal device, code block segmentation on the databy using the target code block segmentation manner based on the value ofthe parameter of the target code block segmentation manner.

With reference to the first aspect, in some implementations of the firstaspect, the code block segmentation manner used by the terminal deviceto perform code block segmentation on the data includes at least one ofthe following code block segmentation manners: N_(CB)=┌L/L_(max)┐, whereN_(CB) indicates a quantity of code blocks into which the data needs tobe segmented, L indicates a length of the data, L_(max) indicates amaximum code length of the code blocks segmented from the data, andN_(CB), L, and L_(max) are all integers greater than or equal to 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L < L_{\min}} \\{\left\lfloor {L/L_{\min}} \right\rfloor,} & {L \geq L_{\min}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(min)indicates a minimum code length of the code blocks segmented from thedata, and N_(CB), L, and L_(min) are all integers greater than or equalto 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L \leq L_{\min}} \\{{\max\left( {\left\lceil {L/L_{\max}} \right\rceil,{\min\left( {\left\lfloor {L/L_{\min}} \right\rfloor,K} \right)}} \right)},} & {L_{\min} < L \leq {K \cdot L_{\max}}} \\{\left\lceil {L/L_{\max}} \right\rceil,} & {L > {K \cdot L_{\max}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(max)indicates the maximum code length of the code blocks segmented from thedata, L_(min) indicates the minimum code length of the code blockssegmented from the data, K is an integer greater than or equal to 1, Kis less than or equal to a quantity of parallel encoders or paralleldecoders supported by the terminal device, N_(CB), L, L_(max), andL_(min) are all integers greater than or equal to 1, and L_(max) isgreater than L_(min); and

$N_{CB} = \left\{ {\begin{matrix}{\left\lceil {L/L_{\max}^{\prime}} \right\rceil,} & {0 < L \leq {K \cdot L_{\max}^{\prime}}} \\{\left\lceil {L/L_{\max}} \right\rceil,} & {L > {K \cdot L_{\max}^{\prime}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L′_(max)indicates a first value of the maximum code length of the code blockssegmented from the data, L_(max) indicates a second value of the maximumcode length of the code blocks segmented from the data, N_(CB), L,L′_(max) and L_(max) are all integers greater than or equal to 1,L′_(max) is less than L_(max), K is an integer greater than or equal to1, and K is less than or equal to the quantity of parallel encoders orparallel decoders supported by the terminal device.

With reference to the first aspect, in some implementations of the firstaspect, the method further includes: sending, by the terminal device,capability information to the network device, where the capabilityinformation is used to indicate the quantity of parallel encoders and/orparallel decoders supported by the terminal device.

With reference to the first aspect, in some implementations of the firstaspect, the first indication information is determined by the networkdevice based on the quantity of parallel encoders and/or paralleldecoders.

With reference to the first aspect, in some implementations of the firstaspect, the receiving, by a terminal device, first indicationinformation used for performing code block segmentation from a networkdevice includes: receiving, by the terminal device, downlink controlsignaling sent by the network device, where the downlink controlsignaling includes the first indication information.

With reference to the first aspect, in some implementations of the firstaspect, the receiving, by a terminal device, first indicationinformation used for performing code block segmentation from a networkdevice includes: receiving, by the terminal device, higher layersignaling sent by the network device, where the higher layer signalingincludes the first indication information.

With reference to the first aspect, in some implementations of the firstaspect, the method further includes: receiving, by the terminal device,second indication information sent by the network device, where thesecond indication information is used to indicate a coding scheme of thecode blocks segmented from the data; and the encoding or decoding, bythe terminal device, the at least one code block includes: encoding ordecoding, by the terminal device, the at least one code block based onthe coding scheme indicated in the second indication information.

With reference to the first aspect, in some implementations of the firstaspect, the coding scheme of the code blocks segmented from the dataincludes at least one of the following coding schemes: an LDPC code; apolar code; a turbo code; a TBCC; and a RM code.

According to a second aspect, a data processing method is provided. Themethod includes: generating, by a network device, first indicationinformation used for performing code block segmentation; and sending, bythe network device, the first indication information to a terminaldevice, so that the terminal device performs code block segmentation ondata based on the first indication information, where the data isreceived by the terminal device from the network device, or the data isprepared by the terminal device so as to send to the network device.

With reference to the second aspect, in some implementations of thesecond aspect, the first indication information is used to instruct theterminal device to divide the data into a target quantity of code blocksin at least one preset quantity of code blocks.

With reference to the second aspect, in some implementations of thesecond aspect, the generating, by a network device, first indicationinformation used for performing code block segmentation includes:selecting, by the network device, the target quantity of code blocksfrom the preset quantities of code blocks; selecting, by the networkdevice, a value corresponding to the target quantity of code blocks fromvalues of a field used to carry the first indication information as avalue of the field; and generating, by the network device, the firstindication information based on the value of the field.

With reference to the second aspect, in some implementations of thesecond aspect, the first indication information is used to instruct theterminal device to perform code block segmentation on the data by usinga target code block segmentation manner in at least one preset codeblock segmentation manner.

With reference to the second aspect, in some implementations of thesecond aspect, the generating, by a network device, first indicationinformation used for performing code block segmentation includes:selecting, by the network device, the target code block segmentationmanner from the preset code block segmentation manners; selecting, bythe network device, a value corresponding to the target code blocksegmentation manner from the values of the field used to carry the firstindication information as the value of the field; and generating, by thenetwork device, the first indication information based on the value ofthe field.

With reference to the second aspect, in some implementations of thesecond aspect, the field used to carry the first indication informationincludes a first value set and a second value set, and when the value ofthe field belongs to the first value set, the first indicationinformation is used to instruct the terminal device to divide the datainto the target quantity of code blocks in at least one preset quantityof code blocks, or when the value of the field belongs to the secondvalue set, the first indication information is used to instruct theterminal device to perform code block segmentation on the data by usingthe target code block segmentation manner in at least one preset codeblock segmentation manner.

With reference to the second aspect, in some implementations of thesecond aspect, the first indication information is used to indicate avalue of a parameter of the target code block segmentation manner usedby the terminal device when the terminal device performs code blocksegmentation on the data.

With reference to the second aspect, in some implementations of thesecond aspect, the generating, by a network device, first indicationinformation used for performing code block segmentation includes:selecting, by the network device, the value of the parameter of thetarget code block segmentation manner from values of the parameter ofthe target code block segmentation manner; selecting, by the networkdevice, a value corresponding to the value of the parameter of thetarget code block segmentation manner from the values of the field usedto carry the first indication information as the value of the field; andgenerating, by the network device, the first indication informationbased on the value of the field.

With reference to the second aspect, in some implementations of thesecond aspect, the first indication information instructs the terminaldevice to perform code block segmentation on the data by using thetarget code block segmentation manner in the preset code blocksegmentation manners, and the first indication information indicates thevalue of the parameter of the target code block segmentation manner.

With reference to the second aspect, in some implementations of thesecond aspect, the generating, by a network device, first indicationinformation used for performing code block segmentation includes:selecting, by the network device, the target code block segmentationmanner from the preset code block segmentation manners; selecting, bythe network device, the value of the parameter of the target code blocksegmentation manner from the values of the parameter of the target codeblock segmentation manner; selecting, by the network device, a valuecorresponding to the target code block segmentation manner and the valueof the parameter of the target code block segmentation manner from thevalues of the field used to carry the first indication information asthe value of the field; and generating, by the network device, the firstindication information based on the value of the field.

With reference to the second aspect, in some implementations of thesecond aspect, the code block segmentation manner used by the terminaldevice to perform code block segmentation on the data includes at leastone of the following code block segmentation manners:N_(CB)=┌L/L_(max)┐, where N_(CB) indicates a quantity of code blocksinto which the data needs to be segmented, L indicates a length of thedata, L_(max) indicates a maximum code length of the code blockssegmented from the data, and N_(CB), L, and L_(max) are all integersgreater than or equal to 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L < L_{\min}} \\{\left\lfloor {L/L_{\min}} \right\rfloor,} & {L \geq L_{\min}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(min)indicates a minimum code length of the code blocks segmented from thedata, and N_(CB), L, and L_(min) are all integers greater than or equalto 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L \leq L_{\min}} \\{{\max\left( {\left\lceil {L/L_{\max}} \right\rceil,{\min\left( {\left\lfloor {L/L_{\min}} \right\rfloor,K} \right)}} \right)},} & {L_{\min} < L \leq {K \cdot L_{\max}}} \\{\left\lceil {L/L_{\max}} \right\rceil,} & {L > {K \cdot L_{\max}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(max)indicates the maximum code length of the code blocks segmented from thedata, L_(min) indicates the minimum code length of the code blockssegmented from the data, K is an integer greater than or equal to 1, Kis less than or equal to a quantity of parallel encoders or paralleldecoders supported by the terminal device, N_(CB), L, L_(max), andL_(min) are all integers greater than or equal to 1, and L_(max) isgreater than L_(min); and

$N_{CB} = \left\{ {\begin{matrix}{\left\lceil {L/L_{\max}^{\prime}} \right\rceil,} & {0 < L \leq {K \cdot L_{\max}^{\prime}}} \\{\left\lceil {L/L_{\max}} \right\rceil,} & {L > {K \cdot L_{\max}^{\prime}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L′_(max)indicates a first value of the maximum code length of the code blockssegmented from the data, L_(max) indicates a second value of the maximumcode length of the code blocks segmented from the data, N_(CB), L,L′_(max), and L_(max) are all integers greater than or equal to 1,L′_(max) is less than L_(max), K is an integer greater than or equal to1, and K is less than or equal to the quantity of parallel encoders orparallel decoders supported by the terminal device.

With reference to the second aspect, in some implementations of thesecond aspect, the method further includes: receiving, by the networkdevice, capability information sent by the terminal device, where thecapability information is used to indicate the quantity of parallelencoders and/or parallel decoders supported by the terminal device.

With reference to the second aspect, in some implementations of thesecond aspect, the first indication information is determined by thenetwork device based on the quantity of parallel encoders and/orparallel decoders.

With reference to the second aspect, in some implementations of thesecond aspect, the sending, by the network device, the first indicationinformation to a terminal device includes: sending, by the networkdevice, downlink control signaling to the terminal device, where thedownlink control signaling includes the first indication information.

With reference to the second aspect, in some implementations of thesecond aspect, the sending, by the network device, the first indicationinformation to a terminal device includes: sending, by the networkdevice, higher layer signaling to the terminal device, where the higherlayer signaling includes the first indication information.

With reference to the second aspect, in some implementations of thesecond aspect, the method further includes: sending, by the networkdevice, second indication information to the terminal device, where thesecond indication information is used to indicate a coding scheme of thecode blocks segmented from the data.

With reference to the second aspect, in some implementations of thesecond aspect, the coding scheme of the code blocks segmented from thedata includes at least one of the following coding schemes: an LDPCcode; a polar code; a turbo code; a TBCC; and a RM code.

According to a third aspect, a terminal device is provided. The terminaldevice includes modules configured to perform the method according tothe first aspect.

According to a fourth aspect, a network device is provided. The networkdevice includes modules configured to perform the method according tothe second aspect.

According to a fifth aspect, a terminal device is provided. The terminaldevice includes a transceiver and an encoder, and the encoder performsthe method according to the first aspect based on the transceiver.

According to a sixth aspect, a network device is provided. The networkdevice includes a processor and a transceiver, and the processorperforms the method according to the second aspect based on thetransceiver.

According to a seventh aspect, a computer-readable medium is provided.The computer-readable medium stores program code executed by a terminaldevice, and the program code includes an instruction used to perform themethod according to the first aspect.

According to an eighth aspect, a computer-readable medium is provided.The computer-readable medium stores program code executed by a networkdevice, and the program code includes an instruction used to perform themethod according to the second aspect.

In the embodiments of the present disclosure, instead of performing codeblock segmentation on the data by using a fixed code block segmentationmanner in the prior art, the network device sends the first indicationinformation used for performing code block segmentation to the terminaldevice, so that the terminal device may perform code block segmentationon the data as indicated in the first indication information, therebyimproving flexibility of encoding and decoding processes.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions in the embodiments of the presentdisclosure more clearly, the following briefly describes theaccompanying drawings required for describing the embodiments of thepresent disclosure. Apparently, the accompanying drawings in thefollowing description show merely some embodiments of the presentdisclosure, and a person of ordinary skill in the art may still deriveother drawings from these accompanying drawings without creativeefforts.

FIG. 1 is a schematic flowchart of a data processing method according toan embodiment of the present disclosure;

FIG. 2 is a schematic flowchart of a data processing method according toanother embodiment of the present disclosure;

FIG. 3 is a schematic structural diagram of a terminal device accordingto an embodiment of the present disclosure;

FIG. 4 is a schematic structural diagram of a network device accordingto an embodiment of the present disclosure;

FIG. 5 is a schematic structural diagram of a terminal device accordingto another embodiment of the present disclosure; and

FIG. 6 is a schematic structural diagram of a network device accordingto another embodiment of the present disclosure.

DETAILED DESCRIPTION

The following clearly and completely describes the technical solutionsin the embodiments of the present disclosure with reference to theaccompanying drawings in the embodiments of the present disclosure.Apparently, the described embodiments are some rather than all of theembodiments of the present disclosure. All other embodiments obtained bya person of ordinary skill in the art based on the embodiments of thepresent disclosure without creative efforts shall fall within theprotection scope of the present disclosure.

It should be understood that the technical solutions of the presentdisclosure can be applied to various communications systems, forexample, a Global System for Mobile communication (Global System forMobile communication, GSM) system, a Code Division Multiple Access (CodeDivision Multiple Access, CDMA) system, a Wideband Code DivisionMultiple Access (Wideband Code Division Multiple Access, WCDMA) system,a General Packet Radio Service (General Packet Radio Service, GPRS)system, an LTE system, a Long Term Evolution Advanced (Long TermEvolution Advanced, LTE-A) system, a Universal Mobile TelecommunicationSystem (Universal Mobile Telecommunication System, UMTS), an NR (NewRadio Access Technology), 5G, and the like.

It should be further understood that in the embodiments of the presentdisclosure, a terminal device may include, but is not limited to, amobile station (Mobile Station, MS), a mobile terminal (MobileTerminal), a mobile telephone (Mobile Telephone), user equipment (UserEquipment, UE), a handset (handset), and portable equipment (portableequipment). The terminal device may communicate with one or more corenetworks through a radio access network (Radio Access Network, RAN). Forexample, the terminal device may be a mobile telephone (or referred toas a “cellular” phone), a computer having a wireless communicationfunction, and the like, and the terminal device may alternatively be aportable, pocket-sized, handheld, computer-built-in, or in-vehiclemobile apparatus.

In the embodiments of the present disclosure, a network device may be anaccess network device. For example, the network device may be a basestation, a transmit and receive point (Transmit and Receive Point, TRP),or an access point. The base station may be a base transceiver station(Base Transceiver Station, BTS) in GSM or CDMA, or may be a NodeB(NodeB) in WCDMA, or may be an evolved NodeB (evolved NodeB, eNB, ore-NodeB) in LTE, or may be a gNB (gNB) in NR or 5G. This is notspecifically limited in the embodiments of the present disclosure.

To improve flexibility of encoding and decoding processes, instead ofperforming code block segmentation on data by using a fixed code blocksegmentation manner, the terminal device provided in the embodiments ofthe present disclosure performs code block segmentation on the databased on first indication information sent by the network device. Anembodiment of the present disclosure is described below in detail withreference to FIG. 1.

FIG. 1 is a schematic flowchart of a data processing method according toan embodiment of the present disclosure. The method in FIG. 1 includes:

110: A terminal device receives first indication information used forperforming code block segmentation from a network device.

120: The terminal device performs code block segmentation on data basedon the first indication information, to obtain at least one code block,where the data is received by the terminal device from the networkdevice, or the data is prepared by the terminal device so as to send tothe network device.

130: The terminal device encodes or decodes the at least one code block.

In this embodiment of the present disclosure, instead of performing codeblock segmentation on the data by using a fixed code block segmentationmanner in the prior art, the network device sends the first indicationinformation used for performing code block segmentation to the terminaldevice, so that the terminal device may perform code block segmentationon the data as indicated in the first indication information, therebyimproving flexibility of encoding and decoding processes.

For example, the network device may instruct, based on encoding anddecoding performance of the terminal device, the terminal device todivide the data into a quantity of code blocks that matches the encodingand decoding performance of the terminal device, or the network devicemay instruct, based on encoding and decoding performance of the terminaldevice, the terminal device to perform code block segmentation on thedata by using a code block segmentation manner matching the encoding anddecoding performance of the terminal device. The encoding and decodingperformance of the terminal device may be, for example, a quantity ofparallel encoders and/or parallel decoders supported by the terminaldevice.

To enable the network device to well guide the terminal device toperform code block segmentation on the data, the terminal device maysend capability information to the network device, to indicate theencoding and decoding performance supported by the terminal device, forexample, the quantity of parallel encoders and/or parallel decoderssupported by the terminal device.

Further, in some embodiments, the first indication information may bedetermined by the network device based on the encoding and decodingperformance of the terminal device, for example, the quantity ofparallel encoders and/or parallel decoders supported by the terminaldevice. For example, the network device learns, by using the capabilityinformation, that the terminal device has five encoders that can work inparallel, and the network device may instruct, by using the firstindication information, the terminal device to divide the data into fivecode blocks, to fully use a parallel encoding capability of the terminaldevice.

It should be noted that, a manner of sending the first indicationinformation by the network device to the terminal device is notspecifically limited in this embodiment of the present disclosure. Thefirst indication information may be sent in a dynamically schedulingmanner, or the first indication information may be sent in a semi-staticmanner. Using the dynamically scheduling manner as an example, step 110may include: receiving, by the terminal device, downlink controlsignaling sent by the network device, where the downlink controlsignaling includes the first indication information. Using thesemi-static manner as an example, step 110 may include: receiving, bythe terminal device, higher layer signaling sent by the network device,where the higher layer signaling includes the first indicationinformation.

It should be further noted that, the data in this embodiment of thepresent disclosure may be data in a shared channel. Specifically, theshared channel may be a physical shared data channel, for example, maybe a physical downlink shared channel (Physical Downlink Shared Channel,PDSCH), or may be a physical uplink shared channel (Physical UplinkShared Channel, PUSCH).

It should be further noted that, a coding scheme of the code blockssegmented from the data is not specifically limited in this embodimentof the present disclosure. In some embodiments, the terminal device mayperform encoding or decoding by using a fixed coding scheme.

In other embodiments, the terminal device may perform encoding ordecoding based on a coding scheme indicated by the network device.Specifically, in some embodiments, the method in FIG. 1 may furtherinclude: receiving, by the terminal device, second indicationinformation sent by the network device, where the second indicationinformation is used to indicate a coding scheme of the code blockssegmented from the data. Step 130 may include: encoding or decoding, bythe terminal device, the at least one code block based on the codingscheme indicated in the second indication information.

Further, the coding scheme of the code blocks segmented from the dataincludes at least one of the following coding schemes: a low-densityparity-check (Low Density Parity Check Code, LDPC) code, a polar code, aturbo code, a tail biting convolutional code (Tail-Biting ConvolutionalCode, TBCC), and a Reed-Muller RM (Reed Muller, RM) code.

It should be noted that, the first indication information may be used bythe terminal device to perform code block segmentation on the data.However, a specific type of the first indication information and anindication manner of the first indication information for code blocksegmentation on the data is not specifically limited in this embodimentof the present disclosure. Specifically, the first indicationinformation may indicate at least one of the following information:segmenting, by the terminal device, the data into a target quantity ofcode blocks in at least one preset quantity of code blocks; performing,by the terminal device, code block segmentation on the data by using atarget code block segmentation manner in at least one preset code blocksegmentation manner; and a value of a parameter of the target code blocksegmentation manner used by the terminal device when the terminal deviceperforms code block segmentation on the data.

In some embodiments, the first indication information indicates one typeof information in the foregoing information. In other embodiments, thefirst indication information indicates a plurality of types ofinformation in the foregoing information.

It should be noted that, a manner of indicating a plurality of types ofinformation in the foregoing information by the first indicationinformation is not specifically limited in this embodiment of thepresent disclosure. For example, a plurality of values of a field usedto carry the first indication information may be segmented intodifferent value sets, and the different value sets may indicatedifferent information in the foregoing information. For another example,one value of the field used to carry the first indication informationmay correspond to at least two types of information in the foregoinginformation. Detailed descriptions are provided below with reference tospecific embodiments.

Optionally, in some embodiments, the first indication information may beused to instruct the terminal device to divide the data into the targetquantity of code blocks in the preset quantities of code blocks.Further, in some embodiments, the target quantity of code blocks may bedetermined based on the encoding and decoding performance of theterminal device, for example, the quantity of parallel encoders and/orparallel decoders supported by the terminal device. It should beunderstood that, the preset quantities of code blocks may be agreed onin a protocol or may be configured by the network device.

Further, in this embodiment of the present disclosure, step 120 mayinclude: determining, by the terminal device, a value of the field usedto carry the first indication information; selecting, by the terminaldevice, a quantity of code blocks that corresponds to the value of thefield from the preset quantities of code blocks as the target quantityof code blocks; and performing, by the terminal device, code blocksegmentation on the data based on the target quantity of code blocks.

An example in which the downlink control signaling carries the firstindication information by using a 3-bit field (that is, {b0, b1, b2} inthe following Table 1) is used. As shown in Table 1, N_(i) is a positiveinteger, and a value of Ni may be agreed on in a protocol orpreconfigured by the network device. It is assumed that when a value of{b0, b1, b2} is {0, 0, 1}, a corresponding value of N₂ is 2. Thisindicates that the data needs to be segmented into two code blocks.

TABLE 1 b0, b1, b2 Preset quantity of code blocks 0, 0, 0 N₁ 0, 0, 1 N₂0, 1, 0 N₃ 0, 1, 1 N₄ 1, 0, 0 N₅ 1, 0, 1 N₆ 1, 1, 0 N₇ 1, 1, 1 N₈

Optionally, in some embodiments, the first indication information may beused to instruct the terminal device to perform code block segmentationon the data by using the target code block segmentation manner in thepreset code block segmentation manners.

It should be understood that, the preset code block segmentation mannersmay be agreed on in a protocol or may be configured by the networkdevice.

It should be noted that, the code block segmentation manner in thisspecification may be used to indicate a manner of determining a quantityof code blocks into which the data needs to be segmented.

It should be noted that the code block segmentation manner in thisspecification may also be referred to as a code block segmentationalgorithm, and the code block segmentation algorithm may be used tocalculate a quantity of code blocks into which the data needs to besegmented.

Further, in this embodiment of the present disclosure, step 120 mayinclude: determining, by the terminal device, the value of the fieldused to carry the first indication information; selecting, by theterminal device, a code block segmentation manner corresponding to thevalue of the field from the preset code block segmentation manners asthe target code block segmentation manner; and performing, by theterminal device, code block segmentation on the data based on the targetcode block segmentation manner.

In some embodiments, the target code block segmentation manner may bedetermined based on the encoding and decoding performance of theterminal device, for example, the quantity of parallel encoders and/orparallel decoders supported by the terminal device.

It should be noted that, a quantity of the preset code blocksegmentation manners and a form of the preset code block segmentationmanner are not specifically limited in this embodiment of the presentdisclosure. For example, the downlink control signaling carries thefirst indication information by using 1 bit (that is, {b0}). As shown inTable 2, b0=0 corresponds to a code block segmentation manner A, andb0=1 corresponds to a code block segmentation manner B.

TABLE 2 b0 Code block segmentation manner 0 Code block segmentationmanner A 1 Code block segmentation manner B

Further, the preset code block segmentation manner may include at leastone of the following code block segmentation manners:

Code block segmentation manner 1: N_(CB)=┌L/L_(max)┐, where N_(CB)indicates a quantity of code blocks into which the data needs to besegmented, L indicates a length of the data, L_(max) indicates a maximumcode length of the code blocks segmented from the data, and N_(CB), L,and L_(max) are all integers greater than or equal to 1. It should benoted that L_(max) may be agreed on in a protocol or may be configuredby the network device.

Code block segmentation manner 2:

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L < L_{\min}} \\{\left\lfloor {L/L_{\min}} \right\rfloor,} & {L \geq L_{\min}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(min)indicates a minimum code length of the code blocks segmented from thedata, and N_(CB), L, and L_(min) are all integers greater than or equalto 1. It should be noted that L_(min) may be agreed on in a protocol ormay be configured by the network device.

Code block segmentation manner 3:

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L \leq L_{\min}} \\{{\max\left( {\left\lceil {L/L_{\max}} \right\rceil,{\min\left( {\left\lfloor {L/L_{\min}} \right\rfloor,K} \right)}} \right)},} & {L_{\min} < L \leq {K \cdot L_{\max}}} \\{\left\lceil {L/L_{\max}} \right\rceil,} & {L > {K \cdot L_{\max}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(max)indicates the maximum code length of the code blocks segmented from thedata, L_(min) indicates the minimum code length of the code blockssegmented from the data, K is an integer greater than or equal to 1, Kis less than or equal to a quantity of parallel encoders or paralleldecoders supported by the terminal device, N_(CB), L, L_(max), andL_(min) are all integers greater than or equal to 1, and L_(max) isgreater than L_(min).

Specifically, the code block segmentation manner 3 may be performedbased on the following logic:

if L≤L_(min), N_(CB)=1;

if L_(min)<L<N_(decoder)·L_(min), N_(CB)=└L/L_(min)┘;

if K·L_(min)≤L≤K·L_(max), N_(CB)=K and a length of each code block isnot less than L_(min) and is not greater than L_(max); or

if L>K·L_(max), N_(CB)=┌L/L_(max)┐ and a length of each code block isnot less than L_(min) and is not greater than L_(max).

In some embodiments, K is equal to the quantity of parallel encoders orparallel decoders supported by the terminal device.

In this embodiment of the present disclosure, on the premise that aminimum code length requirement is satisfied, the data may be segmentedinto code blocks as small as possible, so that parallel encoding anddecoding capabilities of the terminal device can be fully used, toaccelerate an encoding speed or a decoding speed.

Code block segmentation manner 4:

$N_{CB} = \left\{ {\begin{matrix}{\left\lceil {L/L_{\max}^{\prime}} \right\rceil,} & {0 < L \leq {K \cdot L_{\max}^{\prime}}} \\{\left\lceil {L/L_{\max}} \right\rceil,} & {L > {K \cdot L_{\max}^{\prime}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, N_(CB), L,L′_(max), and L_(max) are all integers greater than or equal to 1,L′_(max) is less than L_(max), K is an integer greater than or equal to1, and K is less than or equal to the quantity of parallel encoders orparallel decoders supported by the terminal device. In some embodiments,K is equal to the quantity of parallel encoders or parallel decoderssupported by the terminal device.

Further, in some embodiments, L′_(max) may indicate a first value of themaximum code length of the code blocks segmented from the data, andL_(max) may indicate a second value of the maximum code length of thecode blocks segmented from the data. In this embodiment of the presentdisclosure, a maximum code length having a variable length isintroduced, thereby further improving the flexibility of the encodingand decoding processes.

As noted above, the first indication information may indicate a quantityof code blocks into which the data needs to be segmented, or mayindicate a code block segmentation manner that needs to be used for thedata. Further, in some embodiments, the foregoing two indication mannersmay further be combined together. For details, refer to Table 3 below.

Specifically, the field used to carry the first indication informationincludes a first value set and a second value set, and when the value ofthe field belongs to the first value set, the first indicationinformation is used to instruct the terminal device to divide the datainto the target quantity of code blocks in the preset quantities of codeblocks, or when the value of the field belongs to the second value set,the first indication information is used to instruct the terminal deviceto perform code block segmentation on the data by using the target codeblock segmentation manner in the preset code block segmentation manners.

For example, the downlink control signaling carries the first indicationinformation by using a 3-bit ({b0, b1, b2}) field. When a value of {b0,b1, b2} is {0, 0, 0} or {0, 0, 1}, the first indication information mayindicate a code block segmentation manner, or when a value of {b0, b1,b2} is a value other than {0, 0, 0} and {0, 0, 1}, the first indicationinformation may indicate a quantity of code blocks into which the dataneeds to be segmented.

TABLE 3 b0, b1, b2 Preset quantity of code blocks 0, 0, 0 Code blocksegmentation manner A 0, 0, 1 Code block segmentation manner B 0, 1, 0N₁ 0, 1, 1 N₂ 1, 0, 0 N₃ 1, 0, 1 N₄ 1, 1, 0 N₅ 1, 1, 1 N₆

Optionally, in some embodiments, the first indication information may beused to indicate the value of the parameter of the target code blocksegmentation manner used by the terminal device when the terminal deviceperforms code block segmentation on the data. Further, in someembodiments, the value of the parameter of the target code blocksegmentation manner may be determined based on the encoding and decodingperformance of the terminal device, for example, the quantity ofparallel encoders and/or parallel decoders supported by the terminaldevice.

Specifically, the preset code block segmentation manner may be a codeblock segmentation manner agreed on in a protocol or may be a code blocksegmentation manner configured by the network device. The preset codeblock segmentation manner may be, for example, at least one of theforegoing code block segmentation manners 1 to 4. It can be learned fromthe foregoing code block segmentation manners 1 to 4 that, each codeblock segmentation manner has one or more parameters (which may also bereferred to as one or more variables). For example, a parameter of thecode block segmentation manner 1 is L_(max), a parameter of the codeblock segmentation manner 2 is L_(min), parameters of the code blocksegmentation manner 3 are L_(max), L_(min), and K, and parameters of thecode block segmentation manner 4 are L′_(max) and L_(max).

Further, in this embodiment of the present disclosure, step 120 mayinclude: determining, by the terminal device, the value of the fieldused to carry the first indication information; selecting, by theterminal device, a value corresponding to the value of the field from aplurality of values of the parameter of the target code blocksegmentation manner as the value of the parameter of the target codeblock segmentation manner; and performing, by the terminal device, codeblock segmentation on the data by using the target code blocksegmentation manner based on the value of the parameter of the targetcode block segmentation manner.

Specifically, using the foregoing code block segmentation manner 1 as anexample, it is assumed that the downlink control signaling carries thefirst indication information by using a 2-bit field, and acorrespondence between a value of the 2-bit field and a value of theparameter L_(max) (L_(max) may be agreed on in a protocol or may beconfigured by the network device) in the code block segmentation manner1 is shown in Table 4:

TABLE 4 b0, b1 Value of L_(max) 0, 0 L_(max, 0) 0, 1 L_(max, 1) 1, 0L_(max, 2) 1, 1 L_(max, 3)

Assuming that a value of {b0, b1} is {0, 1}, the value of L_(max) inN_(CB)=┌L/L_(max)┐ is L_(max,1) so that the terminal device may performcode block segmentation on the data based on N_(CB)=┌L/L_(max,1)┐, thatis, first determine N_(CB) based on N_(CB)=┌L/L_(max,1)┐, and thendivide the data into N_(CB) code blocks.

Optionally, in some embodiments, the first indication informationinstructs the terminal device to perform code block segmentation on thedata by using the target code block segmentation manner in the presetcode block segmentation manners, and the first indication informationindicates the value of the parameter of the target code blocksegmentation manner. Further, in some embodiments, the target code blocksegmentation manner and the value of the parameter of the target codeblock segmentation manner may be determined based on the encoding anddecoding performance of the terminal device, for example, the quantityof parallel encoders and/or parallel decoders supported by the terminaldevice.

In other words, in this embodiment of the present disclosure, both thecode block segmentation manner used by the terminal device, and thevalue of the parameter of the code block segmentation manner areindicated by the network device by using the first indicationinformation, thereby further improving the flexibility of the encodingand decoding processes.

The preset code block segmentation manner is not specifically limited inthis embodiment of the present disclosure. For example, the preset codeblock segmentation manner may include at least one of the foregoingdescribed code block segmentation manners 1 to 4, and parameters ofdifferent code block segmentation manners may be the same or may bedifferent.

Specifically, step 120 may include: determining, by the terminal device,the value of the field used to carry the first indication information;selecting, by the terminal device, a code block segmentation mannercorresponding to the value of the field from the preset code blocksegmentation manners as the target code block segmentation manner;selecting, by the terminal device, a value corresponding to the value ofthe field from the plurality of values of the parameter of the targetcode block segmentation manner as the value of the parameter of thetarget code block segmentation manner; and performing, by the terminaldevice, code block segmentation on the data by using the target codeblock segmentation manner based on the value of the parameter of thetarget code block segmentation manner.

Using an example in which the downlink control signaling carries thefirst indication information by using a 3-bit ({b0, b1, b2}) field, acorrespondence between the value of the first indication information,the preset code block segmentation manner, and a value of a parameter ofthe preset code block segmentation manner may be shown in Table 5.

TABLE 5 Code block segmentation manner and the value of the b0, b1, b2parameter of the code block segmentation manner 0, 0, 0 Code blocksegmentation manner 1, L_(max, 0) 0, 0, 1 Code block segmentation manner1, L_(max, 1) 0, 1, 0 Code block segmentation manner 1, L_(max, 2) 0, 1,1 Code block segmentation manner 1, L_(max, 3) 1, 0, 0 Code blocksegmentation manner 2, L_(min, 0) 1, 0, 1 Code block segmentation manner2, L_(min, 1) 1, 1, 0 Code block segmentation manner 2, L_(min, 2) 1, 1,1 Code block segmentation manner 2, L_(min, 3)

Assuming that the value of {b0, b1, b2} received by the terminal deviceis {0, 1, 1}, the terminal device performs code block segmentation byusing the code block segmentation manner 1, and the value of theparameter of the code block segmentation manner 1 is L_(max,3).

Optionally, in some embodiments, the code block segmentation manner usedby the terminal device to perform code block segmentation on the dataincludes at least one of the following code block segmentation manners:N_(CB)=┌L/L_(max)┐, where N_(CB) indicates a quantity of code blocksinto which the data needs to be segmented, L indicates a length of thedata, L_(max) indicates a maximum code length of the code blockssegmented from the data, and N_(CB), L, and L_(max) are all integersgreater than or equal to 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L < L_{\min}} \\{\left\lfloor {L/L_{\min}} \right\rfloor,} & {L \geq L_{\min}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(min)indicates a minimum code length of the code blocks segmented from thedata, and N_(CB), L, and L_(min) are all integers greater than or equalto 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L \leq L_{\min}} \\{{\max\left( {\left\lceil {L/L_{\max}} \right\rceil,{\min\left( {\left\lfloor {L/L_{\min}} \right\rfloor,K} \right)}} \right)},} & {L_{\min} < L \leq {K \cdot L_{\max}}} \\{\left\lceil {L/L_{\max}} \right\rceil,} & {L > {K \cdot L_{\max}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(max)indicates the maximum code length of the code blocks segmented from thedata, L_(min) indicates the minimum code length of the code blockssegmented from the data, K is an integer greater than or equal to 1, Kis less than or equal to a quantity of parallel encoders or paralleldecoders supported by the terminal device, N_(CB), L, L_(max), andL_(min) are all integers greater than or equal to 1, and L_(max) is maxgreater than L_(min); and

$N_{CB} = \left\{ {\begin{matrix}{\left\lceil {L/L_{\max}^{\prime}} \right\rceil,} & {0 < L \leq {K \cdot L_{\max}^{\prime}}} \\{\left\lceil {L/L_{\max}} \right\rceil,} & {L > {K \cdot L_{\max}^{\prime}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L′_(max)indicates a first value of the maximum code length of the code blockssegmented from the data, L_(max) indicates a second value of the maximumcode length of the code blocks segmented from the data, N_(CB), L,L′_(max), and L_(max) are all integers greater than or equal to 1,L′_(max) is less than L_(max), K is an integer greater than or equal to1, and K is less than or equal to the quantity of parallel encoders orparallel decoders supported by the terminal device.

The data processing method in the embodiments of the present disclosureis described above in detail with reference to FIG. 1 from a perspectiveof the terminal device, and the data processing method in theembodiments of the present disclosure is described below in detail withreference to FIG. 2 from a perspective of the network device. It shouldbe understood that, the descriptions for a side of the network devicecorrespond to the descriptions for a side of the terminal device. Forsimilar content, refer to the foregoing descriptions, and details arenot described herein again.

FIG. 2 is a schematic flowchart of a data processing method according toan embodiment of the present disclosure. The method in FIG. 2 includes:

210: A network device generates first indication information used forperforming code block segmentation.

220: The network device sends the first indication information to aterminal device, so that the terminal device performs code blocksegmentation on data based on the first indication information, wherethe data is received by the terminal device from the network device, orthe data is prepared by the terminal device so as to send to the networkdevice; or the first indication information is used by the terminaldevice to perform code block segmentation on the data.

In this embodiment of the present disclosure, instead of performing codeblock segmentation on the data by using a fixed code block segmentationmanner in the prior art, the network device sends the first indicationinformation used for performing code block segmentation to the terminaldevice, so that the terminal device may perform code block segmentationon the data as indicated in the first indication information, therebyimproving flexibility of encoding and decoding processes.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device to divide the data into a targetquantity of code blocks in a plurality of preset quantities of codeblocks.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device to perform code block segmentationon the data by using a target code block segmentation manner in aplurality of preset code block segmentation manners.

Optionally, in some embodiments, a field used to carry the firstindication information includes a first value set and a second valueset, and when a value of the field belongs to the first value set, thefirst indication information is used to instruct the terminal device todivide the data into the target quantity of code blocks in at least onepreset quantity of code blocks, or when a value of the field belongs tothe second value set, the first indication information is used toinstruct the terminal device to perform code block segmentation on thedata by using the target code block segmentation manner in at least onepreset code block segmentation manner.

Optionally, in some embodiments, the code block segmentation manner ofthe data is the preset code block segmentation manner, and the firstindication information is used to indicate a value of a parameter of thepreset code block segmentation manner.

Optionally, in some embodiments, the first indication informationinstructs the terminal device to perform code block segmentation on thedata by using the target code block segmentation manner in the pluralityof preset code block segmentation manners, and the first indicationinformation indicates a value of a parameter of the target code blocksegmentation manner.

Optionally, in some embodiments, the code block segmentation manner usedby the terminal device to perform code block segmentation on the dataincludes at least one of the following code block segmentation manners:

N_(CB)=┌L/L_(max)┐, where N_(CB) indicates a quantity of code blocksinto which the data needs to be segmented, L indicates a length of thedata, L_(max) indicates a maximum code length of the code blockssegmented from the data, and N_(CB), L, and L_(max) are all integersgreater than or equal to 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L < L_{\min}} \\{\left\lfloor {L/L_{\min}} \right\rfloor,} & {L \geq L_{\min}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(min)indicates a minimum code length of the code blocks segmented from thedata, and N_(CB), L, and L_(min) are all integers greater than or equalto 1;

$N_{CB} = \left\{ {\begin{matrix}{1,\ {L \leq L_{\min}}} \\{{\max\ \left( {\left\lceil {L/L_{\max}} \right\rceil,\ {\min\ \left( {\left\lfloor {L/L_{\min}} \right\rfloor,\ K} \right)}} \right)}\ ,\ {L_{\min} < L \leq {K \cdot L_{\max}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(max)indicates the maximum code length of the code blocks segmented from thedata, L_(min) indicates the minimum code length of the code blockssegmented from the data, K is an integer greater than or equal to 1, Kis less than or equal to a quantity of parallel encoders or paralleldecoders supported by the terminal device, N_(CB), L, L_(max), andL_(min) are all integers greater than or equal to 1, and L_(max) isgreater than L_(min); and

$N_{CB} = \left\{ {\begin{matrix}{\left\lceil {L/L_{\max}^{\prime}} \right\rceil\ ,\ {0 < L \leq {K \cdot L_{\max}^{\prime}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}^{\prime}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L′_(max)indicates a first value of the maximum code length of the code blockssegmented from the data, L_(max) indicates a second value of the maximumcode length of the code blocks segmented from the data, N_(CB), L,L_(max), and L_(max) are all integers greater than or equal to 1,L′_(max) is less than L_(max), K is an integer greater than or equal to1, and K is less than or equal to the quantity of parallel encoders orparallel decoders supported by the terminal device.

Optionally, in some embodiments, the method in FIG. 2 may furtherinclude: receiving, by the network device, capability information sentby the terminal device, where the capability information is used toindicate the quantity of parallel encoders and/or parallel decoderssupported by the terminal device.

Optionally, in some embodiments, the first indication information isdetermined by the network device based on the quantity of parallelencoders and/or parallel decoders.

Optionally, in some embodiments, step 220 may include: sending, by thenetwork device, downlink control signaling to the terminal device, wherethe downlink control signaling includes the first indicationinformation.

Optionally, in some embodiments, the first indication information isindication information sent by the network device in a semi-staticmanner.

Optionally, in some embodiments, the method in FIG. 2 may furtherinclude: sending, by the network device, second indication informationto the terminal device, where the second indication information is usedto indicate a coding scheme of the code blocks segmented from the data.

Optionally, in some embodiments, the coding scheme of the code blockssegmented from the data includes at least one of the following codingschemes: an LDPC code; a polar code; a turbo code; a TBCC; and a RMcode.

The method embodiments of the present disclosure are described above indetail with reference to FIG. 1 and FIG. 2, and apparatus embodiments ofthe present disclosure are described below in detail with reference toFIG. 3 to FIG. 6. It should be understood that, the apparatusembodiments correspond to the method embodiments. For similardescriptions, refer to the method embodiments.

FIG. 3 is a schematic structural diagram of a terminal device accordingto an embodiment of the present disclosure. The terminal device 300 inFIG. 3 includes:

a receiving module 310, configured to receive first indicationinformation used for performing code block segmentation from a networkdevice;

a code block segmentation module 320, configured to perform code blocksegmentation on data based on the first indication information, toobtain at least one code block, where the data is received by theterminal device 300 from the network device, or the data is prepared bythe terminal device 300 so as to send to the network device; and

a processing module 330, configured to encode or decode the at least onecode block.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device 300 to divide the data into atarget quantity of code blocks in at least one preset quantity of codeblocks.

Optionally, in some embodiments, the code block segmentation module 320is specifically configured to: determine a value of a field used tocarry the first indication information; select a quantity of code blocksthat corresponds to the value of the field from the preset quantities ofcode blocks as the target quantity of code blocks; and perform codeblock segmentation on the data based on the target quantity of codeblocks.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device 300 to perform code blocksegmentation on the data by using a target code block segmentationmanner in at least one preset code block segmentation manner.

Optionally, in some embodiments, the code block segmentation module 320is specifically configured to: determine the value of the field used tocarry the first indication information; select a code block segmentationmanner corresponding to the value of the field from the preset codeblock segmentation manners as the target code block segmentation manner;and perform code block segmentation on the data based on the target codeblock segmentation manner.

Optionally, in some embodiments, the field used to carry the firstindication information includes a first value set and a second valueset, and when the value of the field belongs to the first value set, thefirst indication information is used to instruct the terminal device 300to divide the data into the target quantity of code blocks in the presetquantities of code blocks, or when the value of the field belongs to thesecond value set, the first indication information is used to instructthe terminal device 300 to perform code block segmentation on the databy using the target code block segmentation manner in the preset codeblock segmentation manners.

Optionally, in some embodiments, the first indication information isused to indicate a value of a parameter of the target code blocksegmentation manner used by the terminal device 300 when the terminaldevice 300 performs code block segmentation on the data.

Optionally, in some embodiments, the code block segmentation module 320is specifically configured to: determine the value of the field used tocarry the first indication information; select a value corresponding tothe value of the field from a plurality of values of the parameter ofthe target code block segmentation manner as the value of the parameterof the target code block segmentation manner; and perform code blocksegmentation on the data by using the target code block segmentationmanner based on the value of the parameter of the target code blocksegmentation manner.

Optionally, in some embodiments, the first indication informationinstructs the terminal device 300 to perform code block segmentation onthe data by using the target code block segmentation manner in thepreset code block segmentation manners, and the first indicationinformation indicates the value of the parameter of the target codeblock segmentation manner.

Optionally, in some embodiments, the code block segmentation module 320is specifically configured to: determine the value of the field used tocarry the first indication information; select a code block segmentationmanner corresponding to the value of the field from the preset codeblock segmentation manners as the target code block segmentation manner;select a value corresponding to the value of the field from theplurality of values of the parameter of the target code blocksegmentation manner as the value of the parameter of the target codeblock segmentation manner; and perform code block segmentation on thedata by using the target code block segmentation manner based on thevalue of the parameter of the target code block segmentation manner.

Optionally, in some embodiments, the code block segmentation manner usedby the terminal device 300 to perform code block segmentation on thedata includes at least one of the following code block segmentationmanners:

N_(CB)=┌L/L_(max)┐, where N_(CB) indicates a quantity of code blocksinto which the data needs to be segmented, L indicates a length of thedata, L_(max) indicates a maximum code length of the code blockssegmented from the data, and N_(CB), L, and L_(max) are all integers,greater than or equal to 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L < L_{\min}} \\{\left\lfloor {L/L_{\min}} \right\rfloor,} & {L \geq L_{\min}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(min)indicates a minimum code length of the code blocks segmented from thedata, and N_(CB), L, and L_(min) are all integers greater than or equalto 1;

$N_{CB} = \left\{ {\begin{matrix}{1,\ {L \leq L_{\min}}} \\{{\max\ \left( {\left\lceil {L/L_{\max}} \right\rceil,\ {\min\ \left( {\left\lfloor {L/L_{\min}} \right\rfloor,K} \right)}} \right)}\ ,\ {L_{\min} < L \leq {K \cdot L_{\max}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(max)indicates the maximum code length of the code blocks segmented from thedata, L_(min) indicates the minimum code length of the code blockssegmented from the data, K is an integer greater than or equal to 1, Kis less than or equal to a quantity of parallel encoders or paralleldecoders supported by the terminal device 300, N_(CB), L, L_(max), andL_(min) are all integers greater than or equal to 1, and L_(max) isgreater than L_(min); and

$N_{CB} = \left\{ {\begin{matrix}{\left\lceil {L/L_{\max}^{\prime}} \right\rceil\ ,\ {0 < L \leq {K \cdot L_{\max}^{\prime}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}^{\prime}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L′_(max)indicates a first value of the maximum code length of the code blockssegmented from the data, L_(max) indicates a second value of the maximumcode length of the code blocks segmented from the data, N_(CB), L,L′_(max), and L_(max) are all integers greater than or equal to 1,L′_(max) is less than L_(max), K is an integer greater than or equal to1, and K is less than or equal to the quantity of parallel encoders orparallel decoders supported by the terminal device 300.

Optionally, in some embodiments, the terminal device 300 furtherincludes: a sending module, configured to send capability information tothe network device, where the capability information is used to indicatethe quantity of parallel encoders and/or parallel decoders supported bythe terminal device 300.

Optionally, in some embodiments, the first indication information isdetermined by the network device based on the quantity of parallelencoders and/or parallel decoders.

Optionally, in some embodiments, the receiving module 310 isspecifically configured to receive downlink control signaling sent bythe network device, where the downlink control signaling includes thefirst indication information.

Optionally, in some embodiments, the receiving module 310 isspecifically configured to receive higher layer signaling sent by thenetwork device, where the higher layer signaling includes the firstindication information.

Optionally, in some embodiments, the receiving module 310 is furtherconfigured to receive second indication information sent by the networkdevice, where the second indication information is used to indicate acoding scheme of the code blocks segmented from the data; and theprocessing module 330 is specifically configured to encode or decode theat least one code block based on the coding scheme indicated in thesecond indication information.

Optionally, in some embodiments, the coding scheme of the code blockssegmented from the data includes at least one of the following codingschemes: an LDPC code; a polar code; a turbo code; a TBCC; and a RMcode.

FIG. 4 is a schematic structural diagram of a network device accordingto an embodiment of the present disclosure. The network device 400 inFIG. 4 includes:

a generation module 410, configured to generate first indicationinformation used for performing code block segmentation; and

a sending module 420, configured to send the first indicationinformation to a terminal device, so that the terminal device performscode block segmentation on data based on the first indicationinformation, where the data is received by the terminal device from thenetwork device 400, or the data is prepared by the terminal device so asto send to the network device 400.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device to divide the data into a targetquantity of code blocks in at least one preset quantity of code blocks.

Optionally, in some embodiments, the generation module 410 isspecifically configured to: select the target quantity of code blocksfrom the preset quantities of code blocks; select a value correspondingto the target quantity of code blocks from values of a field used tocarry the first indication information as a value of the field; andgenerate the first indication information based on the value of thefield.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device to perform code block segmentationon the data by using a target code block segmentation manner in at leastone preset code block segmentation manner.

Optionally, in some embodiments, the generation module 410 isspecifically configured to: select the target code block segmentationmanner from the preset code block segmentation manners; select a valuecorresponding to the target code block segmentation manner from thevalues of the field used to carry the first indication information asthe value of the field; and generate the first indication informationbased on the value of the field.

Optionally, in some embodiments, the field used to carry the firstindication information includes a first value set and a second valueset, and when the value of the field belongs to the first value set, thefirst indication information is used to instruct the terminal device todivide the data into the target quantity of code blocks in at least onepreset quantity of code blocks, or when the value of the field belongsto the second value set, the first indication information is used toinstruct the terminal device to perform code block segmentation on thedata by using the target code block segmentation manner in at least onepreset code block segmentation manner.

Optionally, in some embodiments, the first indication information isused to indicate a value of a parameter of the target code blocksegmentation manner used by the terminal device when the terminal deviceperforms code block segmentation on the data.

Optionally, in some embodiments, the generation module 410 isspecifically configured to: select the value of the parameter of thetarget code block segmentation manner from values of the parameter ofthe target code block segmentation manner; select a value correspondingto the value of the parameter of the target code block segmentationmanner from the values of the field used to carry the first indicationinformation as the value of the field; and generate the first indicationinformation based on the value of the field.

Optionally, in some embodiments, the first indication informationinstructs the terminal device to perform code block segmentation on thedata by using the target code block segmentation manner in the presetcode block segmentation manners, and the first indication informationindicates the value of the parameter of the target code blocksegmentation manner.

Optionally, in some embodiments, the generation module 410 isspecifically configured to: select the target code block segmentationmanner from the preset code block segmentation manners; select the valueof the parameter of the target code block segmentation manner from thevalues of the parameter of the target code block segmentation manner;select a value corresponding to the target code block segmentationmanner and the value of the parameter of the target code blocksegmentation manner from the values of the field used to carry the firstindication information as the value of the field;

and generate the first indication information based on the value of thefield.

Optionally, in some embodiments, the code block segmentation manner usedby the terminal device to perform code block segmentation on the dataincludes at least one of the following code block segmentation manners:

N_(CB)=┌L/L_(max)┐, where N_(CB) indicates a quantity of code blocksinto which the data needs to be segmented, L indicates a length of thedata, L_(max) indicates a maximum code length of the code blockssegmented from the data, and N_(CB), L, and L_(max) are all integersgreater than or equal to 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L < L_{\min}} \\{\left\lfloor {L/L_{\min}} \right\rfloor,} & {L \geq L_{\min}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(min)indicates a minimum code length of the code blocks segmented from thedata, and N_(CB), L, and L_(min) are all integers greater than or equalto 1;

$N_{CB} = \left\{ {\begin{matrix}{1,\ {L \leq L_{\min}}} \\{{\max\ \left( {\left\lceil {L/L_{\max}} \right\rceil,\ {\min\ \left( {\left\lfloor {L/L_{\min}} \right\rfloor,\ K} \right)}} \right)}\ ,\ {L_{\min} < L \leq {K \cdot L_{\max}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(max)indicates the maximum code length of the code blocks segmented from thedata, L_(min) indicates the minimum code length of the code blockssegmented from the data, K is an integer greater than or equal to 1, Kis less than or equal to a quantity of parallel encoders or paralleldecoders supported by the terminal device, N_(CB), L, L_(max), andL_(min) are all integers greater than or equal to 1, and L_(max) isgreater than L_(min); and

$N_{CB} = \left\{ {\begin{matrix}{\left\lceil {L/L_{\max}^{\prime}} \right\rceil\ ,\ {0 < L \leq {K \cdot L_{\max}^{\prime}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}^{\prime}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L′_(max)indicates a first value of the maximum code length of the code blockssegmented from the data, L_(max) indicates a second value of the maximumcode length of the code blocks segmented from the data, N_(CB), L,L′_(max), and L_(max) are all integers greater than or equal to 1,L′_(max) is less than L_(max), K is an integer greater than or equal to1, and K is less than or equal to the quantity of parallel encoders orparallel decoders supported by the terminal device.

Optionally, in some embodiments, the network device 400 furtherincludes: a receiving module, configured to receive capabilityinformation sent by the terminal device, where the capabilityinformation is used to indicate the quantity of parallel encoders and/orparallel decoders supported by the terminal device.

Optionally, in some embodiments, the first indication information isdetermined by the network device 400 based on the quantity of parallelencoders and/or parallel decoders.

Optionally, in some embodiments, the sending module 420 is specificallyconfigured to send downlink control signaling to the terminal device,where the downlink control signaling includes the first indicationinformation.

Optionally, in some embodiments, the sending module 420 is specificallyconfigured to send higher layer signaling to the terminal device, wherethe higher layer signaling includes the first indication information.

Optionally, in some embodiments, the sending module 420 is furtherconfigured to send second indication information to the terminal device,where the second indication information is used to indicate a codingscheme of the code blocks segmented from the data.

Optionally, in some embodiments, the coding scheme of the code blockssegmented from the data includes at least one of the following codingschemes: an LDPC code; a polar code; a turbo code; a TBCC; and a RMcode.

FIG. 5 is a schematic structural diagram of a terminal device accordingto an embodiment of the present disclosure. The terminal device 500 inFIG. 5 includes:

a transceiver 510, configured to receive first indication informationused for performing code block segmentation from a network device; and

an encoder 520, configured to: perform code block segmentation on databased on the first indication information, to obtain at least one codeblock, where the data is received by the terminal device 500 from thenetwork device, or the data is prepared by the terminal device 300 so asto send to the network device; and encode or decode the at least onecode block.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device 500 to divide the data into atarget quantity of code blocks in at least one preset quantity of codeblocks.

Optionally, in some embodiments, the encoder 520 is specificallyconfigured to: determine a value of a field used to carry the firstindication information; select a quantity of code blocks thatcorresponds to the value of the field from the preset quantities of codeblocks as the target quantity of code blocks; and perform code blocksegmentation on the data based on the target quantity of code blocks.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device 500 to perform code blocksegmentation on the data by using a target code block segmentationmanner in at least one preset code block segmentation manner.

Optionally, in some embodiments, the encoder 520 is specificallyconfigured to: determine the value of the field used to carry the firstindication information; select a code block segmentation mannercorresponding to the value of the field from the preset code blocksegmentation manners as the target code block segmentation manner; andperform code block segmentation on the data based on the target codeblock segmentation manner.

Optionally, in some embodiments, the field used to carry the firstindication information includes a first value set and a second valueset, and when the value of the field belongs to the first value set, thefirst indication information is used to instruct the terminal device 500to divide the data into the target quantity of code blocks in the presetquantities of code blocks, or when the value of the field belongs to thesecond value set, the first indication information is used to instructthe terminal device 500 to perform code block segmentation on the databy using the target code block segmentation manner in the preset codeblock segmentation manners.

Optionally, in some embodiments, the first indication information isused to indicate a value of a parameter of the target code blocksegmentation manner used by the encoder 520 when the encoder 520performs code block segmentation on the data.

Optionally, in some embodiments, the encoder 520 is specificallyconfigured to: determine the value of the field used to carry the firstindication information; select a value corresponding to the value of thefield from a plurality of values of the parameter of the target codeblock segmentation manner as the value of the parameter of the targetcode block segmentation manner; and perform code block segmentation onthe data by using the target code block segmentation manner based on thevalue of the parameter of the target code block segmentation manner.

Optionally, in some embodiments, the first indication informationinstructs the terminal device 500 to perform code block segmentation onthe data by using the target code block segmentation manner in thepreset code block segmentation manners, and the first indicationinformation indicates the value of the parameter of the target codeblock segmentation manner.

Optionally, in some embodiments, the encoder 520 is specificallyconfigured to: determine the value of the field used to carry the firstindication information; select a code block segmentation mannercorresponding to the value of the field from the preset code blocksegmentation manners as the target code block segmentation manner;select a value corresponding to the value of the field from theplurality of values of the parameter of the target code blocksegmentation manner as the value of the parameter of the target codeblock segmentation manner; and perform code block segmentation on thedata by using the target code block segmentation manner based on thevalue of the parameter of the target code block segmentation manner.

Optionally, in some embodiments, the code block segmentation manner usedby the terminal device 500 to perform code block segmentation on thedata includes at least one of the following code block segmentationmanners:

N_(CB)=┌L/L_(max)┐, where N_(CB) indicates a quantity of code blocksinto which the data needs to be segmented, L indicates a length of thedata, L_(max) indicates a maximum code length of the code blockssegmented from the data, and N_(CB), L, and L_(max) are all integersgreater than or equal to 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L < L_{\min}} \\{\left\lfloor {L/L_{\min}} \right\rfloor,} & {L \geq L_{\min}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(min)indicates a minimum code length of the code blocks segmented from thedata, and N_(CB), L, and L_(min) are all integers greater than or equalto 1;

$N_{CB} = \left\{ {\begin{matrix}{1,\ {L \leq L_{\min}}} \\{{\max\ \left( {\left\lceil {L/L_{\max}} \right\rceil,\ {\min\ \left( {\left\lfloor {L/L_{\min}} \right\rfloor,\ K} \right)}} \right)}\ ,\ {L_{\min} < L \leq {K \cdot L_{\max}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(max)indicates the maximum code length of the code blocks segmented from thedata, L_(min) indicates the minimum code length of the code blockssegmented from the data, K is an integer greater than or equal to 1, Kis less than or equal to a quantity of parallel encoders or paralleldecoders supported by the terminal device 500, N_(CB), L, L_(max), andL_(min) are all integers greater than or equal to 1, and L_(max) isgreater than L_(min); and

$N_{CB} = \left\{ {\begin{matrix}{\left\lceil {L/L_{\max}^{\prime}} \right\rceil\ ,\ {0 < L \leq {K \cdot L_{\max}^{\prime}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}^{\prime}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L′_(max)indicates a first value of the maximum code length of the code blockssegmented from the data, L_(max) indicates a second value of the maximumcode length of the code blocks segmented from the data, N_(CB), L,L′_(max), and L_(max) are all integers greater than or equal to 1,L′_(max) is less than L_(max), K is an integer greater than or equal to1, and K is less than or equal to the quantity of parallel encoders orparallel decoders supported by the terminal device 500.

Optionally, in some embodiments, the transceiver 510 is furtherconfigured to send capability information to the network device, wherethe capability information is used to indicate the quantity of parallelencoders and/or parallel decoders supported by the terminal device 500.

Optionally, in some embodiments, the first indication information isdetermined by the network device based on the quantity of parallelencoders and/or parallel decoders.

Optionally, in some embodiments, the transceiver 510 is specificallyconfigured to receive downlink control signaling sent by the networkdevice, where the downlink control signaling includes the firstindication information.

Optionally, in some embodiments, the transceiver 510 is specificallyconfigured to receive higher layer signaling sent by the network device,where the higher layer signaling includes the first indicationinformation.

Optionally, in some embodiments, the transceiver 510 is furtherconfigured to receive second indication information sent by the networkdevice, where the second indication information is used to indicate acoding scheme of the code blocks segmented from the data; and theencoder 520 is specifically configured to encode or decode the at leastone code block based on the coding scheme indicated in the secondindication information.

Optionally, in some embodiments, the coding scheme of the code blockssegmented from the data includes at least one of the following codingschemes: an LDPC code; a polar code; a turbo code; a TBCC; and a RMcode.

FIG. 6 is a schematic structural diagram of a network device accordingto an embodiment of the present disclosure. The network device 600 inFIG. 6 includes:

a processor 610, configured to generate first indication informationused for performing code block segmentation;

a transceiver 620, configured to send the first indication informationto a terminal device, so that the terminal device performs code blocksegmentation on data based on the first indication information, wherethe data is received by the terminal device from the network device 600,or the data is prepared by the terminal device so as to send to thenetwork device 600.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device to divide the data into a targetquantity of code blocks in at least one preset quantity of code blocks.

Optionally, in some embodiments, the processor 610 is specificallyconfigured to: select the target quantity of code blocks from the presetquantities of code blocks; select a value corresponding to the targetquantity of code blocks from values of a field used to carry the firstindication information as a value of the field; and generate the firstindication information based on the value of the field.

Optionally, in some embodiments, the first indication information isused to instruct the terminal device to perform code block segmentationon the data by using a target code block segmentation manner in at leastone preset code block segmentation manner.

Optionally, in some embodiments, the processor 610 is specificallyconfigured to: select the target code block segmentation manner from thepreset code block segmentation manners; select a value corresponding tothe target code block segmentation manner from the values of the fieldused to carry the first indication information as the value of thefield; and generate the first indication information based on the valueof the field.

Optionally, in some embodiments, the field used to carry the firstindication information includes a first value set and a second valueset, and when the value of the field belongs to the first value set, thefirst indication information is used to instruct the terminal device todivide the data into the target quantity of code blocks in at least onepreset quantity of code blocks, or when the value of the field belongsto the second value set, the first indication information is used toinstruct the terminal device to perform code block segmentation on thedata by using the target code block segmentation manner in at least onepreset code block segmentation manner.

Optionally, in some embodiments, the first indication information isused to indicate a value of a parameter of the target code blocksegmentation manner used by the terminal device when the terminal deviceperforms code block segmentation on the data.

Optionally, in some embodiments, the processor 610 is specificallyconfigured to: select the value of the parameter of the target codeblock segmentation manner from values of the parameter of the targetcode block segmentation manner; select a value corresponding to thevalue of the parameter of the target code block segmentation manner fromthe values of the field used to carry the first indication informationas the value of the field; and generate the first indication informationbased on the value of the field.

Optionally, in some embodiments, the first indication informationinstructs the terminal device to perform code block segmentation on thedata by using the target code block segmentation manner in the presetcode block segmentation manners, and the first indication informationindicates the value of the parameter of the target code blocksegmentation manner.

Optionally, in some embodiments, the processor 610 is specificallyconfigured to: select the target code block segmentation manner from thepreset code block segmentation manners; select the value of theparameter of the target code block segmentation manner from the valuesof the parameter of the target code block segmentation manner; select avalue corresponding to the target code block segmentation manner and thevalue of the parameter of the target code block segmentation manner fromthe values of the field used to carry the first indication informationas the value of the field; and generate the first indication informationbased on the value of the field.

Optionally, in some embodiments, the code block segmentation manner usedby the terminal device to perform code block segmentation on the dataincludes at least one of the following code block segmentation manners:

N_(CB)=┌L/L_(max)┐, where N_(CB) indicates a quantity of code blocksinto which the data needs to be segmented, L indicates a length of thedata, L_(max) indicates a maximum code length of the code blockssegmented from the data, and N_(CB), L, and L_(max) are all integersgreater than or equal to 1;

$N_{CB} = \left\{ {\begin{matrix}{1,} & {L < L_{\min}} \\{\left\lfloor {L/L_{\min}} \right\rfloor,} & {L \geq L_{\min}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(min)indicates a minimum code length of the code blocks segmented from thedata, and N_(CB), L, and L_(min) are all integers greater than or equalto 1;

$N_{CB} = \left\{ {\begin{matrix}{1,\ {L \leq L_{\min}}} \\{{\max\ \left( {\left\lceil {L/L_{\max}} \right\rceil,\ {\min\ \left( {\left\lfloor {L/L_{\min}} \right\rfloor,\ K} \right)}} \right)}\ ,\ {L_{\min} < L \leq {K \cdot L_{\max}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L_(max)indicates the maximum code length of the code blocks segmented from thedata, L_(min) indicates the minimum code length of the code blockssegmented from the data, K is an integer greater than or equal to 1, Kis less than or equal to a quantity of parallel encoders or paralleldecoders supported by the terminal device, N_(CB), L, L_(max), andL_(min) are all integers greater than or equal to 1, and L_(max) isgreater than L_(min); and

$N_{CB} = \left\{ {\begin{matrix}{\left\lceil {L/L_{\max}^{\prime}} \right\rceil\ ,\ {0 < L \leq {K \cdot L_{\max}^{\prime}}}} \\{\left\lceil {L/L_{\max}} \right\rceil,\ {L > {K \cdot L_{\max}^{\prime}}}}\end{matrix},} \right.$

where N_(CB) indicates the quantity of code blocks into which the dataneeds to be segmented, L indicates the length of the data, L′_(max)indicates a first value of the maximum code length of the code blockssegmented from the data, L_(max) indicates a second value of the maximumcode length of the code blocks segmented from the data, N_(CB), L,L′_(max), and L_(max) are all integers greater than or equal to 1,L′_(max) is less than L_(max), K is an integer greater than or equal to1, and K is less than or equal to the quantity of parallel encoders orparallel decoders supported by the terminal device.

Optionally, in some embodiments, the transceiver 620 is furtherconfigured to receive capability information sent by the terminaldevice, where the capability information is used to indicate thequantity of parallel encoders and/or parallel decoders supported by theterminal device.

Optionally, in some embodiments, the first indication information isdetermined by the network device 600 based on the quantity of parallelencoders and/or parallel decoders.

Optionally, in some embodiments, the transceiver 620 is furtherconfigured to send downlink control signaling to the terminal device,where the downlink control signaling includes the first indicationinformation.

Optionally, in some embodiments, the transceiver 620 is specificallyconfigured to send higher layer signaling to the terminal device, wherethe higher layer signaling includes the first indication information.

Optionally, in some embodiments, the transceiver 620 is furtherconfigured to send second indication information to the terminal device,where the second indication information is used to indicate a codingscheme of the code blocks segmented from the data.

Optionally, in some embodiments, the coding scheme of the code blockssegmented from the data includes at least one of the following codingschemes: an LDPC code; a polar code; a turbo code; a TBCC; and a RMcode.

A person of ordinary skill in the art may be aware that, in combinationwith examples of units and algorithm steps described in the embodimentsdisclosed in this specification, the present disclosure may beimplemented by using electronic hardware or a combination of computersoftware and electronic hardware. Whether the functions are performed byusing hardware or software depends on particular applications and designconstraint conditions of the technical solutions. A person skilled inthe art may use different methods to implement the described functionsfor each particular application, but it should not be considered thatthe implementation goes beyond the scope of the present disclosure.

A person skilled in the art may clearly understand that, for the purposeof convenient and brief description, for a detailed working process ofthe foregoing described system, apparatus, and unit, refer to acorresponding process in the foregoing method embodiments, and detailsare not described herein again.

In the several embodiments provided in this application, it should beunderstood that the disclosed system, apparatus, and method may beimplemented in other manners. For example, the foregoing describedapparatus embodiments are merely examples. For example, the unitdivision is merely logical function division and may be other divisionin actual implementations. For example, a plurality of units orcomponents may be combined or integrated into another system, or somefeatures may be ignored or not performed. In addition, the displayed ordiscussed mutual couplings or direct couplings or communicationconnections may be implemented by using some interfaces. The indirectcouplings or communication connections between the apparatuses or unitsmay be implemented in electrical, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,that is, may be located at one position, or may be distributed on aplurality of network units. Some or all of the units may be selectedbased on actual needs to achieve the objectives of the solutions of theembodiments.

In addition, functional units in the embodiments of the presentdisclosure may be integrated into one processing unit, or each of theunits may exist alone physically, or two or more units are integratedinto one unit.

When the functions are implemented in a form of a software functionalunit and sold or used as an independent product, the functions may bestored in a computer-readable storage medium. Based on such anunderstanding, the technical solutions of the present disclosureessentially, or the part contributing to the prior art, or some of thetechnical solutions may be implemented in a form of a software product.The software product is stored in a storage medium, and includes severalinstructions for instructing a computer device (which may be a personalcomputer, a server, or a network device) to perform all or some of thesteps of the methods described in the embodiments of the presentdisclosure. The storage medium includes any medium that can storeprogram code, such as a USB flash drive, a removable hard disk, aread-only memory (ROM, Read-Only Memory), a random access memory (RAM,Random Access Memory), a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementations of thepresent disclosure, but are not intended to limit the protection scopeof the present disclosure. Any variation or replacement readily figuredout by a person skilled in the art within the technical scope disclosedin the present disclosure shall fall within the protection scope of thepresent disclosure. Therefore, the protection scope of the presentdisclosure shall be subject to the protection scope of the claims.

What is claimed is:
 1. A data processing method, comprising: receiving,by a terminal device, first indication information used for performingcode block segmentation; determining, by the terminal device, a codeblock segmentation manner according to a value of the first indicationinformation; and performing, by the terminal device, code blocksegmentation on data based on the code block segmentation manner, toobtain at least one code block, wherein the code block segmentationmanner is one of multiple preset code block segmentation manners, andthe data is data carried on a Physical Downlink Shared Channel (PDSCH)or a Physical Uplink Shared Channel (PUSCH).
 2. The method of claim 1,wherein receiving, by the terminal device, the first indicationinformation used for performing code block segmentation comprises:receiving, by the terminal device, downlink control information sent bya network device, wherein the downlink control information comprises thefirst indication information.
 3. The method of claim 1 wherein maximumcode block sizes corresponding to different code block segmentationmanners in the multiple preset code block segmentation manners aredifferent.
 4. The method of claim 1, wherein each of the multiple presetcode block segmentation manners is applied to a low-density parity-check(LDPC) code.
 5. The method of claim 1, wherein each of the multiplepreset code block segmentation manners is used to determine a quantityof code blocks contained in the data.
 6. The method of claim 1, whereinall values of the first indication information correspond to at leasttwo sets, different sets correspond to different code block segmentationmanners in the multiple preset code block segmentation manners.
 7. Adata processing method, comprising: generating, by a network device,first indication information used for performing code blocksegmentation; and sending, by the network device, the first indicationinformation to a terminal device, so that the terminal device determinesa code block segmentation manner according to a value of the firstindication information and perform code block segmentation on data basedon the code block segmentation manner, to obtain at least one codeblock, wherein the code block segmentation manner is one of multiplepreset code block segmentation manners, and the data is data carried ona Physical Downlink Shared Channel (PDSCH) or a Physical Uplink SharedChannel (PUSCH).
 8. The method of claim 7, wherein sending, by thenetwork device, the first indication information to the terminal devicecomprises: sending, by the network device, downlink control informationto the terminal device, wherein the downlink control informationcomprises the first indication information.
 9. The method of claim 7,wherein maximum code block sizes corresponding to different code blocksegmentation manners in the multiple preset code block segmentationmanners are different.
 10. The method of claim 7, wherein each of themultiple preset code block segmentation manners is applied to alow-density parity-check (LDPC) code.
 11. The method of claim 7, whereineach of the multiple preset code block segmentation manners is used todetermine a quantity of code blocks contained in the data.
 12. Themethod of claim 7, wherein all values of the first indicationinformation correspond to at least two sets, different sets correspondto different code block segmentation manners in the multiple preset codeblock segmentation manners.
 13. A network device, comprising: aprocessor; and a memory storing computer readable instructionsexecutable by the processor, wherein the processor is configured to:generate, first indication information used for performing code blocksegmentation; and send, through a transceiver, the first indicationinformation to a terminal device, so that the terminal device determinesa code block segmentation manner according to a value of the firstindication information and perform code block segmentation on data basedon the code block segmentation manner, to obtain at least one codeblock, wherein the code block segmentation manner is one of multiplepreset code block segmentation manners, and the data is data carried ona Physical Downlink Shared Channel (PDSCH) or a Physical Uplink SharedChannel (PUSCH).
 14. The network device of claim 13, wherein theprocessor is further configured to: send, through the transceiver,downlink control information to the terminal device, wherein thedownlink control information comprises the first indication information.15. The network device of claim 13, wherein maximum code block sizescorresponding to different code block segmentation manners in themultiple preset code block segmentation manners are different.
 16. Thenetwork device of claim 13, wherein each of the multiple preset codeblock segmentation manners is applied to a low-density parity-check(LDPC) code.
 17. The network device of claim 13, wherein each of themultiple preset code block segmentation manners is used to determine aquantity of code blocks contained in the data.
 18. The network device ofclaim 13, wherein all values of the first indication informationcorrespond to at least two sets, different sets correspond to differentcode block segmentation manners in the multiple preset code blocksegmentation manners.